﻿Public Class ViduCheckbox

    Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged
        If CheckBox2.CheckState = 1 Then 'PictureBox2.Visible = True
            PictureBox2.Image = System.Drawing.Image.FromFile("E:\Trang's document\PICTURE\Au tho trong toi la\IMG_0003.JPG")
            PictureBox2.Visible = True
        Else
            PictureBox2.Visible = False
        End If
    End Sub

    Private Sub ViduCheckbox_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        PictureBox1.Visible = False
        PictureBox2.Visible = False
    End Sub

    Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
        If CheckBox1.CheckState = 1 Then 'PictureBox1.Visible = True
            PictureBox1.Image = System.Drawing.Image.FromFile("E:\Trang's document\PICTURE\Au tho trong toi la\IMG_0038.JPG")
            PictureBox1.Visible = True
        Else
            PictureBox1.Visible = False
        End If
    End Sub
End Class
